<div>
  <!-- 步骤条 -->
  <el-steps :active="active" finish-status="success">
    <el-step title="第一步" description="基本信息"></el-step>
    <el-step title="第二步" description="商品图片"></el-step>
    <el-step title="第三步" description="商品内容"></el-step>
  </el-steps>
  <!-- Tabs标签页 -->
  <el-tabs v-model="activeName" tab-position="left" @tab-click="tabChecked">
    <el-tab-pane name="one" label="基本信息">
      <el-form ref="addGoodsform" :model="addGoodsform" label-width="80px">
        <el-form-item label="商品名称">
          <el-input v-model="addGoodsform.goods_name"></el-input>
        </el-form-item>
        <el-form-item label="商品价格">
          <el-input v-model="addGoodsform.goods_price"></el-input>
        </el-form-item>
        <el-form-item label="商品重量">
          <el-input v-model="addGoodsform.goods_weight"></el-input>
        </el-form-item>
        <el-form-item label="商品数量">
          <el-input v-model="addGoodsform.goods_number"></el-input>
        </el-form-item>
        <el-form-item label="商品分类">
          <el-cascader :options="goodsCatOptions" v-model="addGoodsform.goods_cat" change-on-select :props="{label: 'cat_name', value: 'cat_id'}"></el-cascader>
        </el-form-item>
        <el-form-item label="是否促销">
          <el-radio-group v-model="addGoodsform.promotion">
            <el-radio v-model="addGoodsform.promotion" :label="true">是</el-radio>
            <el-radio v-model="addGoodsform.promotion" :label="false">否</el-radio>
          </el-radio-group>
        </el-form-item>
      </el-form>
      <el-button type="primary" @click="nextStep(2, 'two')">下一步</el-button>
    </el-tab-pane>
    <el-tab-pane name="two" label="商品图片">
      <el-upload action="http://localhost:8888/api/private/v1/upload" list-type="picture-card" :on-preview="handlePictureCardPreview"
        :on-remove="handleRemove" :on-success="updateImgData" :headers="headersInfo">
        <i class="el-icon-plus"></i>
      </el-upload>
      <el-dialog :visible.sync="dialogVisible">
        <img width="100%" :src="dialogImageUrl" alt="">
      </el-dialog>
      <el-button type="primary" @click="nextStep(3, 'three')">下一步</el-button>
    </el-tab-pane>
    <el-tab-pane name="three" label="商品内容">
      <quill-editor v-model="addGoodsform.goods_introduce" ref="myQuillEditor" :options="editorOption">
      </quill-editor>
      <el-button @click="addGoods" class="confirm" type="primary">确认</el-button>
    </el-tab-pane>
  </el-tabs>
</div>
